package com.etonedu.meals.bean;

import android.os.Parcel;
import android.os.Parcelable;

public class TProduct implements Parcelable {
    /**
     * deviceCode : E22A6C7CE7A5E133B24C5F0695A18F48
     * devicePsk : HwlBxifgC5227Ru/l2H0Bg==
     * productId : CS61PH6H4W
     */

    private String deviceCode;
    private String devicePsk;
    private String productId;

    public String getDeviceCode() {
        return deviceCode;
    }

    public void setDeviceCode(String deviceCode) {
        this.deviceCode = deviceCode;
    }

    public String getDevicePsk() {
        return devicePsk;
    }

    public void setDevicePsk(String devicePsk) {
        this.devicePsk = devicePsk;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.deviceCode);
        dest.writeString(this.devicePsk);
        dest.writeString(this.productId);
    }

    public TProduct() {
    }

    protected TProduct(Parcel in) {
        this.deviceCode = in.readString();
        this.devicePsk = in.readString();
        this.productId = in.readString();
    }

    public static final Creator<TProduct> CREATOR = new Creator<TProduct>() {
        @Override
        public TProduct createFromParcel(Parcel source) {
            return new TProduct(source);
        }

        @Override
        public TProduct[] newArray(int size) {
            return new TProduct[size];
        }
    };
}
